<style scoped src="./index.scss" lang="scss" rel="stylesheet/scss"></style>
<template src="./index.html"></template>
<script>

export default {
    mixins: [Vue.prototype.$vFN.Mixins.Base,Vue.prototype.$vFN.Mixins.Page],
    data() {
        return {
            appWindow: window,
            form: {
                realName: "",
                mobile: "",
                password: "",
                icon: "",
                status: "",
                remark: "",
            },
            


            // 页面接口地址
            apiUrl: {
                list: "mall-site-portal/portal-admin/list",
                create: "mall-site-portal/portal-admin/create",
                update: "mall-site-portal/portal-admin/update",
                delete: "mall-site-portal/portal-admin/delete",
                detail: "mall-site-portal/portal-admin/getItem",
            },
            // 表格查询数据
            mixinTable_tableSearchData: {
                mobile: "",
            },
            // 表格数据
            tableData: [],
            // 表格数据删除展示结构
            tableDeleteConfig: {
                columns: [
                    { label: "姓名", prop: "realName", type: "" },
                    { label: "电话", prop: "mobile", type: "" },
                    { label: "状态", prop: "status", type: "" },
                    { label: "备注信息", prop: "remark", type: "" },
                ],
                // title: "确定停用以下内容么?",
            },
            // 数据字典
            // 启用状态
            dict_enable_status: [],
            
        };
    },
    methods: {
       
        // 初始化
        async init() {
            // 获取表格数据
            this.mixinTable_getTable("tableData", 1);
            // 数据字典 运营状态
            this.form.status = await this.mixinBase_configDict({
                type: "enable_status",
                name: "dict_enable_status",
            },window);
        },


        mixinEdit_editDataExtend(data_){
            data_.password = "";
            return data_
        },
    },
    mounted() {
        this.init();
        
    },
    activated() {},
};
</script>



